tools/xenconsoled: Initialise pointers before trying to use them
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 7 Mar 2013 16:20:50 +0000 (16:20 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 7 Mar 2013 17:53:55 +0000 (17:53 +0000)
commite31d4781c0e04bec01135dea0cb7d634ee035cd3
tree31da289283f24313bc2a9b84557e1fca205a0163
parent9581c4f9a55372a21e759cd449cb676d0e8feddb
tools/xenconsoled: Initialise pointers before trying to use them

This is a regression introduced by

"Switch from select() to poll() in xenconsoled's IO loop."
  hg c/s 26405:7359c3122c5d
  git cc5434c933153c4b8812d1df901f8915c22830a8

which results in reliable segfaults during VM power operations.

Switch to calloc(3) in an effort to avoid similar problems with changes in the
future.

Signed-off-by: Marcus Granado <marcus.granado@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/console/daemon/io.c